package designPattern.decorator;

public class Client {
	public static void main(String[] args) {
		 /**原始构件*/
        Component component = new ConcreteComponent();
        /**边听音乐，边走路*/
        Component cdl = new ConcreteDecoratorListen(component);
        cdl.go();
        System.out.println();
        /**边走路，边唱歌*/
        Component cds = new ConcreteDecoratorSing(component);
        cds.go();
	}

}
